package com.wwz.controller;

import com.wwz.feign.PersonFeign;
import com.wwz.result.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author wwz
 * @date 2023/3/6
 */
@RestController
@RequestMapping("person")
@Api(tags = "接口测试")
public class PersonController {

    @Resource
    private PersonFeign personFeign;

    @GetMapping("test")
    @ApiOperation("feign测试")
    public Result<?> test(){
        return personFeign.get();
    }
}
